﻿<Window x:Class="Popup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Popup" Height="58" Width="300"
        WindowStyle="None"
        AllowsTransparency="True"
        Topmost="True"
        Background="#CC2D2D2D"
        MouseLeftButtonDown="Window_MouseLeftButtonDown_1" 
        StateChanged="Window_StateChanged_1"
        Loaded="Window_Loaded_1">
    <Grid>
        <Border BorderThickness="1"
                BorderBrush="CornflowerBlue"
                Padding="4">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"/>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="50"/>
                </Grid.ColumnDefinitions>
                <Image Source="https://pp.vk.me/c6138/v6138451/3740/j_taxOOz224.jpg"
                       x:Name="imgAvatar"
                       MouseLeftButtonDown="imgAvatar_MouseLeftButtonDown_1"
                       Loaded="imgAvatar_Loaded_1"/>
                <TextBox Grid.Column="1"
                         Margin="4,0,4,0"
                         TextWrapping="Wrap" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Auto"
                         x:Name="txtStatusNew">
                    Test 1
                </TextBox>
                <ProgressBar Grid.Column="1"
                             IsIndeterminate="True"
                             Margin="4,0,4,0"
                             x:Name="ProgressBar1"
                             Height="16"
                             Visibility="Hidden">
                    <ProgressBar.OpacityMask>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#33977474" Offset="0.008"/>
                            <GradientStop Color="#7F000000" Offset="1"/>
                        </LinearGradientBrush>
                    </ProgressBar.OpacityMask>
                </ProgressBar>
                <Button Grid.Column="2"
                        Padding="8" Click="Button_Click_1">
                    Send
                </Button>
            </Grid>
        </Border>
        <Popup x:Name="pppStatus"
               StaysOpen="False"
               Placement="MousePoint">
            <Border Background="#CC2D2D2D"
                    BorderThickness="1"
                    BorderBrush="CornflowerBlue">
                <TextBlock Text="&lt;Загружается&gt;"
                           Foreground="White"
                           x:Name="txtStatus"/>
            </Border>
        </Popup>
    </Grid>
    
</Window>
